//跨域代理前缀
  const API_PROXY_PREFIX = "";
// const ORG_URL = "192.168.10.48:8080" ;
const BASE_URL =
  process.env.NODE_ENV === "production"
    ? API_PROXY_PREFIX
    : process.env.VUE_APP_MOCK == "true"
    ? process.env.VUE_APP_API_BASE_URL + API_PROXY_PREFIX
    : API_PROXY_PREFIX;
module.exports = {
  VERCODE: `${BASE_URL}/api/anon/auth/vercode`,
  LOGIN: `${BASE_URL}/api/anon/auth/validate`,
  WXLOGIN:`${BASE_URL}/api/WXLogin/toLogin`,
  WXBINDING:`${BASE_URL}/api/WXLogin/binding`,
  WXBINDINGCASE:`${BASE_URL}/api/WXLogin/bindingCase`,
  WXUNBINDING:`${BASE_URL}/api/WXLogin/Unbinding`,
  LOGINSMS: `${BASE_URL}/api/auth/validate`,
  GETSMS: `${BASE_URL}/api/sms/smsCode`,
  TOKEN2: `${BASE_URL}/api/auth/getToken2.0`,
  //修改密码
  CHANGEPWD: `${BASE_URL}/api/current/changePwd`,
  //重置密码
  RESETPWD: `${BASE_URL}/api/user/resetPwd`,
  //重置登录错误次数
  RESETCOUNT: `${BASE_URL}/api/user/resetLoginErrCount`,
  ROUTES: `${BASE_URL}/api/current/getAuth`,
  GOODS: `${BASE_URL}/api/goods`,
  GOODS_COLUMNS: `${BASE_URL}/api/columns`,
  //检测
  MATERIALSCHECK: `${BASE_URL}/api/audit/queryAll`,
  DELMATERIALCHECK: `${BASE_URL}/api/audit/del`,
  ONEMATERIALCHECK: `${BASE_URL}/api/audit/findById`,
  USERCHECk: `${BASE_URL}/api/audit/userAudit`,
  USERAUDITLIST: `${BASE_URL}/api/audit/userAuditList`,

  //机构
  ORGANIZATION: `${BASE_URL}/api/org/queryPage`,
  ADDORGANIZATION: `${BASE_URL}/api/org/create`,
  ONEORGANIZATION: `${BASE_URL}/api/org/get`,
  UPDATEORGANIZATION: `${BASE_URL}/api/org/update`,
  ORGALL: `${BASE_URL}/api/org/findAll`,

  //用户
  USER: `${BASE_URL}/api/sysUser/queryPage`,
  ONEUSER: `${BASE_URL}/api/user/get`,
  ADDUSER: `${BASE_URL}/api/user/create`,
  UPDATEUSER: `${BASE_URL}/api/user/update`,
  DELUSER: `${BASE_URL}/api/user/remove`,
  AUTHUSER: `${BASE_URL}/api/user/auth`,
  USERINFO: `${BASE_URL}/api/current/getInfo`,
  LOCKUSER: `${BASE_URL}/api/user/enabled`,
  SAVEUSERROLE: `${BASE_URL}/api/user/saveRoles`,
  GETUSERROLE: `${BASE_URL}/api/user/getRoles`,
  GETUNREVIEWED: `${BASE_URL}/api/eqPerPlay/getAuditCount`,
  LOGOUT: `${BASE_URL}/api/current/logout`,
  //菜单
  MENU: `${BASE_URL}/api/resource/list`,
  ADDMENU: `${BASE_URL}/api/resource/create`,
  UPDATEMENU: `${BASE_URL}/api/resource/update`,
  DELMENU: `${BASE_URL}/api/resource/remove`,
  ALLMENU: `${BASE_URL}/api/menu/getAll`,
  FINDMENU: `${BASE_URL}/api/resource/get`,
  //日志
  OPERATELOG: `${BASE_URL}/api/log/operatePage`,
  LOGINLOG: `${BASE_URL}/api/log/loginPage`,
  ALARMLOG:`${BASE_URL}/api/log/alarmPage`,
  SYSTEMLOG:`${BASE_URL}/api/log/loginPage`,
  EXPORTALARM:`${BASE_URL}/api/log/exportAlarmLog`,
  EXPORTOPERATE:`${BASE_URL}/api/log/exportOperateLog`,
  EXPORTLOGIN:`${BASE_URL}/api/log/exportLoginLog`,
  //租户
  TENANT: `${BASE_URL}/api/tenant/queryPage`,
  TENANTCHANGE:`${BASE_URL}/api/tenant/change`,
  TENANTDEV:`${BASE_URL}/api/tenant/getDevList`,
  TENANTTREE:`${BASE_URL}/api/tenant/getDeptTree`,
  TENANTADD:`${BASE_URL}/api/tenant/create`,
  //设备
  DEVICELIST: `${BASE_URL}/api/device/page`,
  DEVICEADD: `${BASE_URL}/api/device/create`,
  DEVICEEDIT: `${BASE_URL}/api/device/update`,
  DEVICEDEL: `${BASE_URL}/api/device/delete`,
  DEVICECHANGE: `${BASE_URL}/api/device/change`,
  //设备首页
  DEVPLAYLIST:`${BASE_URL}/api/play/list`,
  DEVPLAYUPDATE:`${BASE_URL}/api/play/update`,
  DEVPLAYCLOSESCREEN:`${BASE_URL}/api/play/closeScreen`,
  DEVPLAYOPENSCREEN:`${BASE_URL}/api/play/openScreen`,
  //设备标签
  TAGLIST: `${BASE_URL}/api/deviceTag/page`,
  TAGADD: `${BASE_URL}/api/deviceTag/create`,
  TAGEDIT: `${BASE_URL}/api/deviceTag/update`,
  TAGDEL: `${BASE_URL}/api/deviceTag/delete`,
  TAGDEVICE: `${BASE_URL}/api/deviceTag/getDevByTag`,
  //控制卡
  CARDLIST:`${BASE_URL}/api/controllerCard/list`,
  //节目
  PROGRAMLIST:`${BASE_URL}/api/program/page`,
  ONEPROGRAM:`${BASE_URL}/api/program/details`,
  PROGRAMADD:`${BASE_URL}/api/program/create`,
  PROGRAMDEL:`${BASE_URL}/api/program/delete`,
  RELEASE:`${BASE_URL}/api/program/republish`,
  //预览 /preview/{id}
   PREVIEWID:`${BASE_URL}/api/program/preview`,
  //节目检测
  PROGRAMCHECKPAGE:`${BASE_URL}/api/program/checkPage`,
  ARTIFICIALRECHECK:`${BASE_URL}/api/program/check`,
  //发布检测
  PUBLISHCHECKPAGE:`${BASE_URL}/api/program/publishPage`,
  PUBLISHCHECK:`${BASE_URL}/api/program/publishCheck`,
    //角色
  ROLE: `${BASE_URL}/api/role/queryPage`,
  ONEROLE: `${BASE_URL}/api/role/findById`,
  ADDROLE: `${BASE_URL}/api/role/create`,
  DELROLE: `${BASE_URL}/api/role/remove`,
  UPDATEROLE: `${BASE_URL}/api/role/update`,
  ROLEGETAUTH: `${BASE_URL}/api/role/getAuth`,
  ROLEGSAVEAUTH: `${BASE_URL}/api/role/saveAuth`,
  ALLROLES: `${BASE_URL}/api/resource/getAllTree`,
  //上传
  UPDOAD: `${BASE_URL}/api/file/upload`,
  //组织架构
  USERORGID:`${BASE_URL}/api/sysOrg/queryByUserOrgId`,
  ORGBYPID:`${BASE_URL}/api/org/queryByPid`,
  ORGBYID:`${BASE_URL}/api/org/get`,
  DELORG:`${BASE_URL}/api/sysOrg/removeOrgById`,
  UPDATEORG:`${BASE_URL}/api/sysOrg/update`,
  CREATEORG:`${BASE_URL}/api/sysOrg/create`,
  //IP
  ADDIPWHITE:`${BASE_URL}/api/ipWhite/create`,
  ENABLEIPWHITE:`${BASE_URL}/api/ipWhite/enabled`,
  DELIPWHITE:`${BASE_URL}/api/ipWhite/remove`,
  GETIPWHITE:`${BASE_URL}/api/ipWhite/queryPage`,
  //敏感词
  WORD:`${BASE_URL}/api/test/sensitiveWord/queryPage`,
  DELWORD:`${BASE_URL}/api/test/sensitiveWord/del`,
  ADDWORD:`${BASE_URL}/api/test/sensitiveWord/add`,
  UPDATEWORD:`${BASE_URL}/api/test/sensitiveWord/updata`,
  ITEMLIST:`${BASE_URL}/api/dict/itemLists`,
  ITEMPAGE:`${BASE_URL}/api/dict/item/page`,
  ADDITEM:`${BASE_URL}/api/dict/addItem`,
  UPDATEITEM:`${BASE_URL}/api/dict/updateItem`,
  DELITEM:`${BASE_URL}/api/dict/delItem`,
  //白名单词库
  ADDWHITEWORD:`${BASE_URL}/api/test/sensitiveWord/addWhite`,
  UPDATEWHITEWORD:`${BASE_URL}/api/test/sensitiveWord/updataWhite`,
  DELWHITEWORD:`${BASE_URL}/api/test/sensitiveWord/delWhite`,

  //校准时间
  ADJUSTTIME:`${BASE_URL}/api/play/adjustTime`,
  BACKUP:`${BASE_URL}/api/file/dbBackUp`,
  GETMODIFYTIME:`${BASE_URL}/api/sysConfig/getSysConfig/modify_time`,
  LOGINTIMEOUT:`${BASE_URL}/api/sysConfig/getSysConfig/login_timeout`,
  SETCONFIG:`${BASE_URL}/api/sysConfig/updataSysConfig`,
  //设备管理
  SOFTWARE:`${BASE_URL}/api/utilversion/page`,
  ADDSOFTWARE:`${BASE_URL}/api/utilversion/create`,
  DELSOFTWARE:`${BASE_URL}/api/utilversion/remove`,
  UPSOFTWARE:`${BASE_URL}/api/device/updateVersion`,
  FINDSOFTWARE:`${BASE_URL}/api/utilversion/findVersion`,
  //检测
  IMGADD:`${BASE_URL}/api/verify/add`,
  IMGUPDATE:`${BASE_URL}/api/verify/update`,
  IMGLIST:`${BASE_URL}/api/verify/list`,
  IMGDELETE:`${BASE_URL}/api/verify/delete`,
  TEXTDATA:`${BASE_URL}/api/verify/text/data`,
  TEXTEXPORT:`${BASE_URL}/api/verify/text/export`,
  VERIFYUPLOAD:`${BASE_URL}/api/verify/upload`,
  VERIFYUPLOADBATCH:`${BASE_URL}/api/verify/uploadBatch`,
  VERIFYEXPORT:`${BASE_URL}/api/verify/export`,
  DOCEXPORT:`${BASE_URL}/api/verify/doc/export`,
  RECORDLIST:`${BASE_URL}/api/verify/record_list`,
  EXPORTRECORDLIST:`${BASE_URL}/api/verify/export_record`,
  DETAIL:`${BASE_URL}/api/verify/details`,
  BATCHDELETE:`${BASE_URL}/api/verify/batch/delete`,
  EXPORTREPORT:`${BASE_URL}/api/verify/text/export`,
  EXPORTDETAIL:`${BASE_URL}/api/verify/export/detail`,
  REPORTLIST:`${BASE_URL}/api/verify/report_list`,
  SAVEMSGTEMP:`${BASE_URL}/api/verify/saveMsgTemp`,
  GETMSGTEMP:`${BASE_URL}/api/verify/getMsgTemp`,
  ASSESS: `${BASE_URL}/api/verify/assess`,

  // 检测规则
  CHECKRULEADD: `${BASE_URL}/api/check_rule/add`,
  CHECKRULEUPDATE: `${BASE_URL}/api/check_rule/update`,
  CHECKRULEUPDATENAME: `${BASE_URL}/api/check_rule/updateName`,
  CHECKRULEDETAIL: `${BASE_URL}/api/check_rule/detail`,
  CHECKRULEDELETE: `${BASE_URL}/api/check_rule/delete`,
  CHECKRULELIST: `${BASE_URL}/api/check_rule/list`,
  CHECKDICTLIST: `${BASE_URL}/api/check_rule/dict`,

  // 应用管理
  APPLICATIONINFOADD: `${BASE_URL}/api/application_info/add`,
  APPLICATIONINFOUPDATE: `${BASE_URL}/api/application_info/update`,
  APPLICATIONINFODETAIL: `${BASE_URL}/api/application_info/detail`,
  APPLICATIONINFODELETE: `${BASE_URL}/api/application_info/delete`,
  APPLICATIONINFODELETELIST: `${BASE_URL}/api/application_info/deleteList`,
  APPLICATIONINFOLIST: `${BASE_URL}/api/application_info/queryPage`,
  APPLICATIONINFOALLLIST: `${BASE_URL}/api/application_info/list`,
  //数据中心
  EXPORTBIGDATA: `${BASE_URL}/api/dbCenter/export`,
  BIGDATAHEADER: `${BASE_URL}/api/dbCenter/total`,
  BIGDATACHART: `${BASE_URL}/api/dbCenter/chart`,
  BIGDATARANK: `${BASE_URL}/api/dbCenter/rankings`,
  BIGDATAUSER: `${BASE_URL}/api/dbCenter/use/info`,
  BIGDATAUSERDETAIL: `${BASE_URL}/api/dbCenter/use/details`,
  BIGDATAUSEREXPORT: `${BASE_URL}/api/dbCenter/use/export`,
  BIGDATASSESSSTAT: `${BASE_URL}/api/dbCenter/assess/stat`,
  UPDATE_LOG: `${BASE_URL}/api/dbCenter/words_log`,
};
